﻿using Microsoft.EntityFrameworkCore;
using T_Rbac_Demain;

namespace T_Rbac_Rep
{
    public class Mycreate:DbContext
    {
        public Mycreate(DbContextOptions<Mycreate> options):base(options)
        {
                
        }
        /// <summary>
        /// 角色表
        /// </summary>
        public DbSet<Rule> rules { get; set; }
        /// <summary>
        /// 部门表
        /// </summary>
        public DbSet<Dapartment> dapartments { get; set; }

        /// <summary>
        /// 操作员表
        /// </summary>
        public DbSet<Operator> operators { get; set; }
        /// <summary>
        /// 菜单
        /// </summary>
        public DbSet<Menues> menues { get; set; }
        /// <summary>
        /// 角色
        /// </summary>
        public DbSet<Job> jobs { get; set; }
        /// <summary>
        /// 角色菜单关系表
        /// </summary>
        public DbSet<JobMenus> JobMenus { get; set; }
    }
}
